﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:MonitorWindow="clr-namespace:ScrumSprintMonitor.UI.Wpf.Views.MonitorWindow;assembly=ScrumSprintMonitor.UI.Wpf">

    <DataTemplate x:Key="UnusedTeamMemberBadgeDataTemplate">
        <Viewbox>
            <StackPanel x:Name="UnusedTeamMember">
                <MonitorWindow:UnassignedTeamMemberBadge />

                <Rectangle Height="1" Margin="0,10" Stroke="LightBlue" />
            </StackPanel>
        </Viewbox>

        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding}" Value="{x:Null}">
                <Setter Property="Visibility" TargetName="UnusedTeamMember" Value="Collapsed" />
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <DataTemplate x:Key="TeamMemberBadgeDataTemplate">
        <Viewbox>
            <MonitorWindow:TeamMemberBadge/>
        </Viewbox>
    </DataTemplate>
</ResourceDictionary>